| API Documentation |  |

- MAIN PAGE
- NAMESPACES
- CLASSES

Public Member Functions | List of all members
nkWinUi::ListBox::Item Class Reference

## Public Member Functions
| Item () noexcept
| ~Item ()
ListBox * | getParentList () const
nkMemory::StringView | getLabel () const
void * | getAttachedData () const
void | setParentList (ListBox *parent)
void | setLabel (nkMemory::StringView label)
void | setAttachedData (void *data)

## Detailed Description

An item in a list box.

## Constructor & Destructor Documentation

## ◆ Item()

nkWinUi::ListBox::Item::Item | ( |  | ) |
| noexcept

Constructor.

## ◆ ~Item()

nkWinUi::ListBox::Item::~Item | ( |  | ) |

Destructor.

## Member Function Documentation

## ◆ getParentList()

ListBox* nkWinUi::ListBox::Item::getParentList | ( |  | ) | const

Returns
  The parent list.

## ◆ getLabel()

nkMemory::StringView nkWinUi::ListBox::Item::getLabel | ( |  | ) | const

Returns
  The label the item has.

## ◆ getAttachedData()

void* nkWinUi::ListBox::Item::getAttachedData | ( |  | ) | const

Returns
  The user data attached to the item.

## ◆ setParentList()

void nkWinUi::ListBox::Item::setParentList | ( | ListBox * | parent | ) |

Sets the parent list, owning the item.

Parameters

  parent | The parent list.

## ◆ setLabel()

void nkWinUi::ListBox::Item::setLabel | ( | nkMemory::StringView | label | ) |

Sets the item label.

Parameters

  label | The label the item should have.

## ◆ setAttachedData()

void nkWinUi::ListBox::Item::setAttachedData | ( | void * | data | ) |

Sets the use data attached to the item.

Parameters

  data | The data to attach to the item.

Remarks
  The item will not own the data.

The documentation for this class was generated from the following file:

- Documentation/Headers/NilkinsWinUi/Components/ListBox.h